<cfcomponent output="false" alias="virtualfooddrive-inf.com.Donation">

	<cfproperty name="ID" type="numeric" default="0">
	<cfproperty name="USER_ID" type="numeric" default="0">
	<cfproperty name="AMOUNT" type="numeric" default="0">
	<cfproperty name="DONATION_DATE" type="date" default="">
	<cfproperty name="FOODDRIVE_ID" type="numeric" default="0">
	<cfproperty name="PAYMENT_CONFIRM_CODE" type="string" default="">
	<cfproperty name="PAYMENT_CONFIRMED" type="numeric" default="0">
	<cfproperty name="TRANSACTION_ID" type="numeric" default="0">

	<cfscript>
		this.ID = 0;
		this.USER_ID = 0;
		this.AMOUNT = 0;
		this.DONATION_DATE = "";
		this.FOODDRIVE_ID = 0;
		this.PAYMENT_CONFIRM_CODE = "";
		this.PAYMENT_CONFIRMED = 0;
		this.TRANSACTION_ID = 0;
	</cfscript>

	<cffunction name="init" output="false" returntype="Donation">
		<cfreturn this>
	</cffunction>
	<cffunction name="addAuthenticationResult" output="false" access="remote" returntype="void">
		<cfargument name="donationID" required="yes" type="string">		
		<cfquery username="#request.username#" password="#request.password#" name="q_UpdateStatus" datasource="nwharvest">
			UPDATE dbo.Donations set Payment_Confirmed = 1 			WHERE ID = <cfqueryparam cfsqltype="CF_SQL_INTEGER" value="#arguments.donationID#" />
		</cfquery>
	</cffunction>
</cfcomponent>